package com.nmh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nmh.entity.Pasture;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzx
 * @since 2023-12-19
 */
@Mapper
public interface PastureMapper extends BaseMapper<Pasture> {
    @Select("select * from pasture where states!=0 ")
    List<Pasture> selectAllByState();
    @Select("select * from pasture ")
    List<Pasture> selectAll();
}
